//
//  RecommendCell.m
//  GSG
//
//  Created by dllo on 15/4/21.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "RecommendCell.h"

@implementation RecommendCell

- (void)dealloc
{
    [_aLabel release];
    [_image release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.aLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.contentView.frame.origin.x + 110, self.contentView.frame.origin.y + 20, self.contentView.frame.size.width - 100, 30)];
        [self.contentView addSubview:self.aLabel];
//        [self.aLabel setBackgroundColor:[UIColor whiteColor]];
        
        self.tLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.contentView.frame.origin.x + 100, self.contentView.frame.origin.y + 55, self.contentView.frame.size.width - 70, 30)];
        [self.contentView addSubview:self.tLabel];
        
        self.image = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, 80, 80)];
        self.image.contentMode = UIViewContentModeScaleAspectFill;
        self.image.autoresizesSubviews = YES;
        self.image.clipsToBounds = YES;
        self.image.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"button.jpg"]];
        [self.contentView addSubview:self.image];
        
//        self.contentView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"bf.jpg"]];
    }
    return self;
}





/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
